package demo1接口的使用;

public class Brid extends Animal implements IRunning,IFlying{
    public Brid(String name, int age) {
        super(name, age);
    }
    @Override
    public int hashCode() {
        return super.hashCode();
    }
    @Override
    public void etc() {
        System.out.println(name + "正在吃鸟粮");
    }
    @Override
    public void fly() {
        System.out.println(name + "正在用翅膀飞");
    }
    @Override
    public void run() {
        System.out.println(name + "正在用鸟腿跑");
    }
}
